<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
	<script type="text/javascript">
		function toDel(url){
			if(window.confirm("确定删除吗？")){
				window.location.href=url
			}
			
		}
	</script>
</head>
<body>
<a href="SortServlet?type=toAdd">房屋类别添加</a>
	<table>
		<thead>
			<tr>
				<td>编号</td>
				<td>岗位信息</td>
			</tr>
		
		<c:forEach items="${sortList }" var="list">
			<tr>
				<td>${list.sid }</td>
				<td>${list.sname }</td>
				<td><a href="SortServlet?type=toUpdate&sid=${list.sid }">修改</a></td>
 				<td><a href="javascript:toDel('SortServlet?type=delete&sid=${list.sid }')">删除</a></td>
			</tr>
		
		</c:forEach>
		</thead>
	
	</table>
</body>
</html>